from django.db import models

# 用户表
class User(models.Model):
    username=models.CharField(max_length=32)
    password=models.CharField(max_length=225)
    auth=models.IntegerField(default=0)
    depart=models.ForeignKey('Department',on_delete=models.CASCADE)

    class Meta:
        db_table='user'


class Department(models.Model):
    name=models.CharField(max_length=32)

    class Meta:
        db_table='dept'



